# Contributor: Oleg Titov <oleg.titov@gmail.com>
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
pkgname=gqrx
pkgver=2.17.3
pkgrel=0
pkgdesc="Interactive SDR receiver waterfall for many devices"
url="https://gqrx.dk/"
arch="aarch64 x86_64" # limited by availability of gr-osmosdr
license="GPL-3.0-or-later"
options="!check" # No test suite from upstream
makedepends="
	cmake
	gr-osmosdr-dev
	pulseaudio-dev
	qt6-qtbase-dev
	qt6-qtsvg-dev
	samurai
	"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/gqrx-sdr/gqrx/archive/refs/tags/v$pkgver.tar.gz"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo

	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build

	install -Dm 644 -t "$pkgdir"/usr/share/doc/$pkgname/ README.md
}

sha512sums="
d6627e0300d41e76bf327319eaa5e12f35917d6b1743c05f4ee6c56253b62f812fd7e6ef2371651e5cfa6c1af01cc260d3825adafee13ee7a56f88621f3bb623  gqrx-2.17.3.tar.gz
"
